<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>flex-direction</title>
    <style>
      div {
        width: 80%;
        height: 500px;
        background-color: pink;
        /* flex 布局 */
        display: flex;
        /* 主轴方向 */
        /* flex-direction: row; */
        /* flex-direction: row-reverse; */
        flex-direction: column;
        /* flex-direction: column-reverse; */
      }
      div span {
        width: 150px;
        height: 100px;
        background-color: purple;
        margin-right: 5px;
        margin-bottom: 5px;
      }
    </style>
  </head>
  <body>
    <div><span>1</span><span>2</span><span>3</span></div>
  </body>
</html>
